package cn.edu.scau.cmi.mengzhuorong.client;

import cn.edu.scau.cmi.mengzhuorong.simpleFactoryMethod.*;
import java.util.Scanner;
import java.lang.Runnable;

public class SimpleFactoryMethodClient implements Runnable {

	public static void main(String[] args) {
		MeatFactory meat = new MeatFactory();
		Scanner reader = new Scanner(System.in);
		System.out.println("请输入“Pork”，“Beef”，“Chicken”任一单词");
		String string = reader.next();
		meat.getMeat(string).cook();	
		reader.close();
	}
	
	@Override
	public void run() {
		this.main(null);
	}
}
